﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Configuration;
using SGQ.Model;
using SGQ.Controller;
using SGQ.View;
using SGQ.Util;

namespace SGQ
{
    static class Program    
    {
        [STAThread]
        static void Main()
        {
            
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            FormLogin frmLogin = new FormLogin();
            FormMain frmMain = new FormMain();
            Application.Run(frmLogin);
            if (frmLogin.isAprovado())
            {
                frmMain.Session = frmLogin.SessionApp;
                Application.Run(frmMain);
            }
        }
    }
}
